package com.dts.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dts.entity.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface EmpMapper extends BaseMapper<Emp> {

    Emp selectEmpById(int empId);

    List<Emp> selectAllEmp(@RequestParam("dto") Emp emp);

    @Select("SELECT * FROM  t_emp WHERE 1=1")
    IPage<Emp> selectEmpPage(IPage<Emp> page);

    @Select("SELECT * FROM  t_emp WHERE 1=1")
    List<Emp> selectEmpList(IPage<Emp> page);

}
